package shop.dao;

import java.util.List;

import shop.model.Shopcart;
import shop.model.vo.ShopcartVO;

public interface IShopcartDao {

	/**查询购物车中是否有客户要买的商品
	 * @param cart
	 * @return
	 */
	Integer findCart(Shopcart cart);

	/**修改购物车
	 * @param cart
	 * @return
	 */
	int editCart(Shopcart cart);

	/**添加到购物车
	 * @param cart
	 * @return
	 */
	int add(Shopcart cart);

	/**查询用户的购物车
	 * @param uid
	 * @return
	 */
	List<ShopcartVO> findCartByUId(Integer uid);

}
